
<template>
	<view class="content">
		<web-view :webview-styles="webviewStyles"  :src="path" ref="webviewBack">
			<!-- <cover-view class="video-mask-btn top">
			    <cover-view class="video-mask-btn-right">
			        按钮
			    </cover-view>
			</cover-view> -->
		</web-view>
	</view>
</template>
 
<script>
import navigationBar from '../../components/navigationBar.vue';
export default {
	data() {
		return {
			path:'',
			contractId:'',
			webviewStyles: {
			    progress: false //必须要设置为false
			},
			atLoading:false,
			
		}
	},
	onLoad(e) {
		// setTimeout(()=>{
		// 	//#ifdef APP-PLUS
		// 	    plus.screen.unlockOrientation();//解除锁定屏幕方向
		// 	    plus.screen.lockOrientation('landscape-primary');
		// 	//#endif  
		// 	//#ifdef MP-WEIXIN
		// 	wx.setPageOrientation({ orientation: 'landscape' })
		// 	//#endif  
		// },150)
		//加载中。。
		var ePath = decodeURIComponent(e.path);
		this.path=ePath;
		// this.path = e.url;
		console.log("接受的url"+this.path)
		// this.contractId=e.id;
		// var pages = getCurrentPages();
		// 	var page = pages[pages.length - 1];
		// 	var currentWebview=page.$getAppWebview();
		// 	console.log(currentWebview)
		// 	setTimeout(function(){
		// 		var web_view= currentWebview.children();
		// 		var w=plus.nativeUI.showWaiting();
		// 		web_view[0].addEventListener("loading",function(){
		// 			w.show();
		// 		},false);
				
		// 		web_view[0].addEventListener("loaded",function(){
		// 			w.close();
		// 			w=null;
		// 		},false);
		// 	},600)
			//加载中。。
	},
	methods: {
		//调用原生返回按钮
		 onNavigationBarButtonTap(e) {
				// let that = this
			
		  },

	},
	components: {
		navigationBar,
	},
}
 
</script>
<style >
.top{
	position: fixed;
	z-index: 999999;
	top: 30rpx;
	right: 0;
	width: auto;
	display:flex;
	align-items: center;
	border-radius: 0px 50rpx 50rpx 0px;
	display: flex;
	padding: 20rpx 10rpx;
	justify-content: center;
	align-items: center;
	font-size: 26rpx;
	
}
.video-mask-btn-right {
    width: 260upx;
    height: 60upx;
    line-height: 60upx;
    background: rgba(255,0,0,0.5);;
    text-align: center;
    color: #FFFFFF;
    font-size: 35upx;
    border-radius: 30upx;
}
.video-mask-btn-right {
    padding-right: 30upx;
    margin-right: -50upx;
}

</style>